Skip to main content
Version: 5.3.0.0

Method

Description​

Methods describe the capabilities of a service and are crucial for the service declaration.

Creation​

In case you created the REST Service Client manually, or you want to modify the service, you can add, delete, and modify HTTP methods.

To add a new Method:​

  1. Open the REST Service Client configuration panel.
  2. Expand the desired Route (for example /default-path).
  3. Click the more vert next to the Route to open menu.
  4. Click on Add Method menu to add a new Method. designer_REST-Service-Client_add_method designer_REST-Service-Client_add_method
  5. By default, a new GET method will be created containing one Request element.

Configuration​

To configure a REST service method, click on the appropriate method element in the REST service tree. designer_REST-Service-Client_method designer_REST-Service-Client_method

The following configuration options are available:

  • Method: The HTTP method to execute (e.g., GET, POST, PUT, DELETE).

  • URL-Pattern: A read-only field showing an example URL for the method call based on the configured Route path and the Request parameters.

  • Request media type: The format of the request content, as defined in the Request object of the method.

  • Response media type: The format of the method's response, as defined in the Response object of the method.

  • Process all responses: If this checkbox is set, then responses with a status code between 400 and 599 are handled like any other response if they match a defined Response element. If not set, such a response will cause an error in the process model.
    Matching a defined Response means that the returned status code must match the Status codes in the Response, and the returned Content-Type must match the selected Media type of the Response.

See also​